<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>{$pagetitle}</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
  <link rel="stylesheet" href="/static/admin/layui/css/layui.css" media="all">
  <link rel="stylesheet" href="/static/admin/style/global.css" media="all">
  <style>
	  .layui-form{min-width:800px;}
	  .layui-form-label{ width:10%;}
	  .layui-form-label span{ font-size: 12px; color:gray; display: block;}
	  .layui-form-item .layui-input-inline{width:80%;}
	  .inline-select,.layui-form [lay-ignore]{ float: left; display: block; width:200px}
	  .inline-i{ float: left; display: block; line-height: 38px; margin-left: 10px;}
	  .inline-i input{width:80px; height: 36px; line-height: 36px; border:0px; border-bottom:1px solid #ccc;border-radius: 2px;}
	  
	  .image input{ width:80%;}
	  .image input,.image button{ float: left;}
	  
	  .select input{ width:60%;}
	  .select select{ width:50px;border-color: #e6e6e6;height: 38px;line-height: 1.3;line-height: 38px\9;border-width: 1px;border-style: solid;background-color: #fff;border-radius: 2px;}
	  .select input,.select button{ float: left;}	  
	  
	  .upload_plus{ margin-top: 10px; color: dimgrey;}
	  .upload_plus li{ list-style: -moz-circle; width:100%; height: 40px; display: block;}
	  .upload_plus li .upload_plus_name{ width: 15%; height: 40px; float: left; display: block;}
	  .upload_plus li .upload_content{ width: 80%; height: 40px; float: left; display: block;}
	  .upload_plus li .upload_content input,.upload_plus li .upload_content select{ width: 200px; height: 28px;}	  
  </style>  
</head>
<body>

<form action="{:url()}" method="post" class="form-horizontal" onsubmit="return save_form(this)">
	<input type="hidden" name="pid" value="{$pid}">
	
	
	<div class="layui-card">
	  <div class="layui-card-body">
		<div class="layui-tab layui-tab-card">
		<ul class="layui-tab-title">
			<li class="layui-this">基本设置</li>
			<li>邮件设置</li>
			<li>短信设置</li>
			<li>附件设置</li>
                        <li>登录设置</li>
		</ul>
		<div class="layui-tab-content">
		  <div class="layui-tab-item layui-show">

			  <div class="layui-form" style="padding: 20px 30px 0 0;">
				<div class="layui-form-item">
				  <label class="layui-form-label">网站名称</label>
				  <div class="layui-input-inline">
					  <input type="text" value="{:config('setting.sitename')}" name='setting[sitename]' autocomplete="off" class="layui-input">
				  </div>
				</div>
				<div class="layui-form-item">
				  <label class="layui-form-label">SEO标题</label>
				  <div class="layui-input-inline">
					<input type="text" value="{:config('setting.pagetitle')}" name="setting[pagetitle]" autocomplete="off" class="layui-input">
				  </div>
				</div>		
				<div class="layui-form-item">
				  <label class="layui-form-label">关键词</label>
				  <div class="layui-input-inline">
					<input type="text" value="{:config('setting.keywords')}" name='setting[keywords]' autocomplete="off" class="layui-input">
				  </div>
				</div>		
				<div class="layui-form-item">
				  <label class="layui-form-label">描述</label>
				  <div class="layui-input-inline">
                        <textarea type="text" style="height: 200px;" name='setting[description]' autocomplete="off" class="layui-input">{:config('setting.description')}</textarea>
				  </div>
				</div>	
				<div class="layui-form-item">
				  <label class="layui-form-label">描述截取字符</label>
				  <div class="layui-input-inline">
					<input type="text" value="{:config('setting.description_len')}" placeholder="请输入要截取的字符长度" name='setting[description_len]' autocomplete="off" class="layui-input">
				  </div>
				</div>							
																				
																				
			  </div>			  
			  
		  </div>
		  <div class="layui-tab-item">
			  
			<div class="layui-form" style="padding: 20px 30px 0 0;">

				<div class="layui-form-item">
				  <label class="layui-form-label">发件人名称</label>
				  <div class="layui-input-inline">
					<input type="text" value="{:config('email.mail_fromname')}" name="email[mail_fromname]" autocomplete="off" class="layui-input">
				  </div>
				</div>

				<div class="layui-form-item">
				  <label class="layui-form-label">SMTP地址</label>
				  <div class="layui-input-inline">
					<input type="text" value="{:config('email.mail_host')}" name="email[mail_host]" autocomplete="off" class="layui-input">
				  </div>
				</div>
				
				<div class="layui-form-item">
				  <label class="layui-form-label">邮箱用户名</label>
				  <div class="layui-input-inline">
					<input type="text" value="{:config('email.mail_username')}" name="email[mail_username]" autocomplete="off" class="layui-input">
				  </div>
				</div>
								
				<div class="layui-form-item">
				  <label class="layui-form-label">邮箱密码</label>
				  <div class="layui-input-inline">
					<input type="text" value="{:config('email.mail_password')}" name="email[mail_password]" autocomplete="off" class="layui-input">
				  </div>
				</div>								
					
				<div class="layui-form-item">
				  <label class="layui-form-label">找回密码模板</label>
				  <div class="layui-input-inline">
                        <textarea type="text" style="height: 200px;" name='email[getpass_temp]' autocomplete="off" class="layui-input">{:config('email.getpass_temp')}</textarea>
                        <div>用户名：<input type="text" value="[!--username--]" class="noborder"></div>
                        <div>发信时间：<input type="text" value="[!--date--]" class="noborder"></div>
                        <div>验证地址：<input type="text" value="[!--getpassurl--]" class="noborder"></div>	
						<a class="layui-btn iframe" href="{:url('testMail')}">测试发邮件</a>
				  </div>
				</div>		
	
			  </div>					  
			  
		  </div>
		  <div class="layui-tab-item">
			  
			<div class="layui-form" style="padding: 20px 30px 0 0;">

				<div class="layui-form-item">
				  <label class="layui-form-label">accessKeyId</label>
				  <div class="layui-input-inline">
					<input type="text" value="{:config('mobile.accessKeyId')}" name="mobile[accessKeyId]" autocomplete="off" class="layui-input">
				  </div>
				</div>

				<div class="layui-form-item">
				  <label class="layui-form-label">accessKeySecret</label>
				  <div class="layui-input-inline">
					<input type="text" value="{:config('mobile.accessKeySecret')}" name="mobile[accessKeySecret]" autocomplete="off" class="layui-input">
				  </div>
				</div>
				
				<div class="layui-form-item">
				  <label class="layui-form-label">SignName<span>(短信签名)</span></label>
				  <div class="layui-input-inline">
					<input type="text" value="{:config('mobile.SignName')}" name="mobile[SignName]" autocomplete="off" class="layui-input">
				  </div>
				</div>
								
				<div class="layui-form-item">
				  <label class="layui-form-label">TemplateCode<span>(短信模板)</span></label>
				  <div class="layui-input-inline">
					<input type="text" value="{:config('mobile.TemplateCode')}" name="mobile[TemplateCode]" autocomplete="off" class="layui-input">
					<a class="layui-btn iframe" href="{:url('testMobile')}">测试发短信</a>
				  </div>
				</div>								
	
	
			  </div>					  
			  
		  </div>
		  <div class="layui-tab-item">
                      <div class="layui-form-item layui-form" lay-filter="component-form-element">
                                        <label class="layui-form-label">文件管理器<span>通过信息打开文件管理器的时候是要展示整站文件还是只展示当前信息对应的文件<span></label>
                                      <div class="layui-input-inline">
                                        <div class="layui-input-block" style="margin-left:0px;">
                                          <input type="radio" name="upload_file[info_file]" {if config('upload_file.info_file')=='self'}checked{/if} value="self" title="仅列出当前信息对应的文件">
                                          <input type="radio" name="upload_file[info_file]" {if config('upload_file.info_file')=='all'}checked{/if} value="all" title="列出整站所有文件">
                                        </div>   
                                      </div>
                                    </div>                       
                      
				<div class="layui-form-item">
				  <label class="layui-form-label">图片上传设置</label>
				  <div class="layui-input-inline">
                  	<ul class="upload_plus">
                    	<li>
							<span class="upload_plus_name">存储方式</span>
							<span class="upload_content">
								<select name="upload_img[upload_driver]"><option value="local">本地</option></select>
							</span>
					    </li>
                        <li>
							<span class="upload_plus_name">拓展名</span>
							<span class="upload_content">
								<input name="upload_img[exts]" type="text" value="{:config('upload_img.exts')}" style="width:60%" placeholder=""  />
							</span>
						</li>
                        <li>
							<span class="upload_plus_name">MiMe类型</span>
							<span class="upload_content">
								<input name="upload_img[mimes]" type="text" value="{:config('upload_img.mimes')}" style="width:60%" placeholder=""  /> (多个用","格开)<a href="http://www.w3school.com.cn/media/media_mimeref.asp" target="_blank">参考</a>
							</span>
						</li>
                        <li>
							<span class="upload_plus_name">文件大小限制</span>
							<span class="upload_content">
								<input name="upload_img[maxSize]" type="text" value="{:config('upload_img.maxSize')}" class="span2" placeholder=""  /> M
							</span>
						</li>
                        <li>
							<span class="upload_plus_name">文件夹名称</span>
							<span class="upload_content">
								<input name="upload_img[rootPath]" type="text" value="{:config('upload_img.rootPath')}" class="span2" placeholder=""  /> (请使用字母/数字/下划线命名)
							</span>
						</li>
                    </ul>
				  </div>
				</div>	
				<div class="layui-form-item">
				  <label class="layui-form-label">附件上传设置</label>
				  <div class="layui-input-inline">
                  	<ul class="upload_plus">
                    	<li>
							<span class="upload_plus_name">存储方式</span>
							<span class="upload_content">
								<select name="upload_file[upload_driver]"><option value="local">本地</option></select>
							</span>
						</li>
                        <li>
							<span class="upload_plus_name">拓展名</span>
							<span class="upload_content">
								<input name="upload_file[exts]" type="text" value="{:config('upload_file.exts')}" style="width:60%" placeholder=""  />
							</span>
						</li>
                        <li>
							<span class="upload_plus_name">MiMe类型</span>
							<span class="upload_content">
								<input name="upload_file[mimes]" type="text" value="{:config('upload_file.mimes')}" style="width:60%" placeholder=""  /> (多个用","格开)<a href="http://www.w3school.com.cn/media/media_mimeref.asp" target="_blank">参考</a>
							</span>
						</li>
                        <li>
							<span class="upload_plus_name">文件大小限制</span>
							<span class="upload_content">
								<input name="upload_file[maxSize]" type="text" value="{:config('upload_file.maxSize')}" class="span2" placeholder=""  /> M
							</span>
						</li>
                        <li>
							<span class="upload_plus_name">文件夹名称</span>
							<span class="upload_content">
								<input name="upload_file[rootPath]" type="text" value="{:config('upload_file.rootPath')}" class="span2" placeholder=""  /> (请使用字母/数字/下划线命名)
							</span>
						</li>
                    </ul>
				  </div>
				</div>	
				<div class="layui-form-item">
				  <label class="layui-form-label">视频上传设置</label>
				  <div class="layui-input-inline">                                      
                  	<ul class="upload_plus">
                    	<li>
							<span class="upload_plus_name">存储方式</span>
							<span class="upload_content">
								<select name="upload_video[upload_driver]"><option value="local">本地</option></select>
							</span>
						</li>
                        <li>
							<span class="upload_plus_name">拓展名</span>
							<span class="upload_content">
								<input name="upload_video[exts]" type="text" value="{:config('upload_video.exts')}" style="width:60%" placeholder=""  />
							</span>
						</li>
                        <li>
							<span class="upload_plus_name">MiMe类型</span>
							<span class="upload_content">
								<input name="upload_video[mimes]" type="text" value="{:config('upload_video.mimes')}" style="width:60%" placeholder=""  /> (多个用","格开)<a href="http://www.w3school.com.cn/media/media_mimeref.asp" target="_blank">参考</a>
							</span>
						</li>
                        <li>
							<span class="upload_plus_name">文件大小限制</span>
							<span class="upload_content">
								<input name="upload_video[maxSize]" type="text" value="{:config('upload_video.maxSize')}" class="span2" placeholder=""  /> M
							</span>
						</li>
                        <li>
							<span class="upload_plus_name">文件夹名称</span>
							<span class="upload_content">
								<input name="upload_video[rootPath]" type="text" value="{:config('upload_video.rootPath')}" class="span2" placeholder=""  /> (请使用字母/数字/下划线命名)
							</span>
						</li>
                    </ul>
				  </div>
				</div>									
			  
		  </div>
                    
                    
		  <div class="layui-tab-item">
			  
			<div class="layui-form" style="padding: 20px 30px 0 0;">
				<div class="layui-form-item">
				  <label class="layui-form-label">登录错误几次锁定IP</label>
				  <div class="layui-input-inline">
					  <input type="text" value="{:config('login.error_num')}" name='login[error_num]' autocomplete="off" class="layui-input">
				  </div>
				</div>      
				<div class="layui-form-item">
                                    <label class="layui-form-label">解锁登录时间<span>(分钟)</span></label>
				  <div class="layui-input-inline">
					  <input type="text" value="{:config('login.relogin_time')}" name='login[relogin_time]' autocomplete="off" class="layui-input">
				  </div>
				</div>                              
                        </div>
                  </div>
		</div>

                    
	  </div>
	</div>	
	<div class="layui-form-item layui-layout-admin" style="margin-top: 30px;">
		<div class="layui-input-block">
		   <div class="layui-footer" style="left: 0;">
			  <button class="layui-btn" type="submit"  lay-filter="component-form-element">立即提交</button>
		  </div>
		</div>
	</div>  
</form>
  <script src="/static/admin/layui/layui.js"></script>
  <script src="/static/js/jquery.min.js"></script>    
  <script src="/static/js/globals.js"></script>  
  <!--select2 js start-->
  <link rel="stylesheet" href="/static/select2/select2.css" media="all">
  <script src="/static/select2/select2.js"></script>
  <!--select2 js end-->
  <script>
  layui.config({
    base: '/static/admin/' //静态资源所在路径
  }).extend({
    index: 'lib/index' //主入口模块
  }).use(['index', 'form'], function(){
    var $ = layui.$
    ,element = layui.element
    ,form = layui.form;
	$('.select2').select2();
         form.render(null, 'component-form-element');
         element.render('breadcrumb', 'breadcrumb');
  })
  </script>
</body>
</html>